package com.example.demo.singer;

//import org.springframework.stereotype.Component;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

/**
 * @author Mordecai
 * @version 1.0.0
 * @create 2017/10/29 19:48
 * @blog
 */
//@Component // 加注解，让spring识别
@Service("singer1")
//@Primary
public class MetalSinger implements Singer{
    @Override
    public String sing(String lyrics) {
        return "I am singing with DIO voice: " + lyrics;
    }
}
